export type CrecleBaseType = {
  iconName: string,
  click?: string,
  exec?: boolean,
  route?: string,
}
export type CrecleType = {
  article: CrecleBaseType[],
  home: CrecleBaseType[],
  index: CrecleBaseType[],
  column: CrecleBaseType[],
}

export const crecleData: CrecleType =  {
  article: [
    {
      iconName: 'edit',
      click: 'handleFocusTextarea',
    },
    {
      iconName: 'like',
      exec: true,
      click: 'handleChangeLike',
    },
    {
      iconName: 'goBack',
      route: '/index',
    },
  ],
  home: [
    {
      route: '/write',
      iconName: 'edit',
    },
  ],
  index: [
    {
      route: '/write',
      iconName: 'edit',
    },
  ],
  column: [
    {
      iconName: 'add',
      click: 'handlePostColumn',
    },
  ],
}
